package ${packageName};
<#if applicationPackage??>
import ${applicationPackage}.R;
import androidx.annotation.Nullable;
import com.zxn.presenter.view.BaseFragment;
import android.os.Bundle;
</#if>

/**
 * Created by zxn on ${.now}.
 * 
 */
public class ${className} extends BaseFragment {

<#if includeFactory>
    
    private static final String ARG_PARAM1 = "arg_param1";
    private String mParam1;
</#if>

<#if includeFactory>

	public static ${className} newInstance(String param1) {
        ${className} fragment = new ${className}();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        fragment.setArguments(args);
        return fragment;
    }

    public static ${className} newInstance() {
        ${className} fragment = new ${className}();
        return fragment;
    }
</#if>
    public ${className}() {
    }

<#if includeFactory>

	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    if (getArguments() != null) {
	        mParam1 = getArguments().getString(ARG_PARAM1);
	    }
	}
</#if>

<#if includeLayout>
    @Override
    protected int getLayoutResId() {
        return R.layout.${fragmentName};
    }
</#if>

	    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }
}
